package com.qianyu.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.entity.IncomeContract;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qianyu.project.entity.IncomeWorkAmount;
import com.qianyu.project.vo.IncomeContractVo;
import com.qianyu.project.vo.IncomeReportVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 收入合同 服务类
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
public interface IIncomeContractService extends IService<IncomeContract> {

    /**
     * 获取最大id
     * @return
     */
    String getMaxId();

    Integer saveDetails(IncomeContract incomeForm, List<IncomeWorkAmount> incomeDetails);

    IPage<IncomeContractVo> getPageData(Map<String, String> params);

    IncomeContractVo selectOne(String id);

    IncomeContractVo selectByPid(String id);

    IPage<IncomeContractVo> selectInfo(Map<String, String> params);

    IPage<IncomeReportVo> selectReport(Map<String, String> params);
}
